package com.example.carrierapp.viewmodel.itemmodel

import android.databinding.BaseObservable
import com.example.lb.fingerdemo.R
import com.google.gson.annotations.SerializedName

class ItemSearchModel:BaseObservable(){

    var id = 0

    @SerializedName("carNum", alternate = ["name"])
    var name = ""

    var phone = ""

    var checked = false

    var icon = -1
        get() = if (phone.isEmpty()) R.mipmap.icon_car else R.mipmap.icon_head_portrait
}